import * as staticDict from '@/staticDict'
import { get } from '@/utils/request'

export default class FlowDictionaryController {
  static dictFlowCategory(params) {
    return new Promise((resolve, reject) => {
      get('/service-workflow/b/flow/flowCategory/v1/listDict', params).then(res => {
        const dictData = new staticDict.DictionaryBase()
        dictData.setList(res.data)
        resolve(dictData)
      }).catch(err => {
        reject(err)
      })
    })
  }
}
